package com.example.shixun.service;

import com.example.shixun.pojo.Course;
import com.example.shixun.utils.PageInfoUtil;

import java.util.List;


/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/21 16:27
 */
public interface CourseService {



    public Integer saveCourse(Course course);
    public Integer deleteCourseById(int id);
    public Integer deleteCourseByName(String name);
    public Course selectCourseById(int id);
    public Course selectCourseByName(String name);
    public PageInfoUtil<Course> selectCourseAll(PageInfoUtil<Course> pageInfoUtil);
    public Integer updateCourse(Course course);
    public List<Course> findByTeacherId(Course course);
    public Integer addStudent(Integer id);
    public Integer subStudent(Integer id);
    public Integer addLike(Integer id);
    public Integer subLike(Integer id);
}
